<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>class Minitest::TestTask - minitest: Ruby Standard Library Documentation</title>


<script src="../js/navigation.js" defer></script>
<script src="../js/search.js" defer></script>
<script src="../js/search_index.js" defer></script>
<script src="../js/searcher.js" defer></script>
<script src="../js/darkfish.js" defer></script>

<script src="../js/jquery-3.2.0.min.js"></script>

<script src="../js/vue.min.js"></script>
<script src="../js/js.cookie.min.js"></script>

<link href="../css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="../css/rdoc.css" rel="stylesheet">
<link href="../css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "../";
  var index_rel_prefix = "../";
  var darkModeCsseHref = "../css/rdoc-dm.css"
  var defaultModeCssHref = "../css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" role="document" class="class">
  <!-- this is class.html -->

  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0.preview2 NOT FOUND -->
  </div> <!-- end action bar -->

  <div class='wrapper hdiv'>

    


    <nav id='vapp' role="navigation">
    <div id="project-navigation">
      <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2><a href="../index.html" rel="home">Home</a></h2>

  <div id="table-of-contents-navigation"  >
    <a href="../table_of_contents.html#pages">Pages</a>
    <a href="../table_of_contents.html#classes">Classes</a>
    <a href="../table_of_contents.html#methods">Methods</a>
  </div>
</div>

      <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

    </div>


    

    <button id='toggleThing' @click="toggleNav()" >Show/hide navigation</button>
    <div :class="isOpen ? 'block' : 'hidden' " id='toggleMe'>
      <div id="class-metadata">
        
        
<div id="parent-class-section" class="nav-section">
  <h3>Parent</h3>

  <p class="link">Rake::TaskLib
</div>

        
        
        
<!-- Method Quickref -->
<div id="method-list-section" class="nav-section">
  <h3>Methods</h3>

  <ul class="link-list" role="directory">
    <li ><a href="#method-c-create">::create</a>
    <li ><a href="#method-i-make_test_cmd">#make_test_cmd</a>
    <li ><a href="#method-i-process_env">#process_env</a>
  </ul>
</div>

      </div>
     </div>
    </nav>


    <div id='extraz'><div class='adzbox-index'  >
      
     </div>         
    </div>

    <main role="main" aria-labelledby="class-Minitest::TestTask">
    <h1 id="class-Minitest::TestTask" class="class">
      class Minitest::TestTask
    </h1>

    <section class="description">
    
<p><a href="TestTask.html"><code>Minitest::TestTask</code></a> is a rake helper that generates several rake tasks under the main test task’s name-space.</p>

<pre>task &lt;name&gt;      :: the main test task
task &lt;name&gt;:cmd  :: prints the command to use
task &lt;name&gt;:deps :: runs each test file by itself to find dependency errors
task &lt;name&gt;:slow :: runs the tests and reports the slowest 25 tests.</pre>

<p>Examples:</p>

<pre class="ruby"><span class="ruby-constant">Minitest</span><span class="ruby-operator">::</span><span class="ruby-constant">TestTask</span>.<span class="ruby-identifier">create</span>
</pre>

<p>The most basic and default setup.</p>

<pre class="ruby"><span class="ruby-constant">Minitest</span><span class="ruby-operator">::</span><span class="ruby-constant">TestTask</span>.<span class="ruby-identifier">create</span> <span class="ruby-value">:my_tests</span>
</pre>

<p>The most basic/default setup, but with a custom name</p>

<pre class="ruby"><span class="ruby-constant">Minitest</span><span class="ruby-operator">::</span><span class="ruby-constant">TestTask</span>.<span class="ruby-identifier">create</span> <span class="ruby-value">:unit</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
  <span class="ruby-identifier">t</span>.<span class="ruby-identifier">test_globs</span> = [<span class="ruby-string">&quot;test/unit/**/*_test.rb&quot;</span>]
  <span class="ruby-identifier">t</span>.<span class="ruby-identifier">warning</span> = <span class="ruby-keyword">false</span>
<span class="ruby-keyword">end</span>
</pre>

<p>Customize the name and only run unit tests.</p>

<p>NOTE: To hook this task up to the default, make it a dependency:</p>

<pre class="ruby"><span class="ruby-identifier">task</span> <span class="ruby-value">default:</span> <span class="ruby-value">:unit</span>
</pre>

    </section>

      <section id="5Buntitled-5D" class="documentation-section">



        <section class="attribute-method-details" class="method-section">
        <header>
        <h3>Attributes</h3>
        </header>

          <div id="attribute-i-extra_args" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">extra_args</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              <p>Extra arguments to pass to the tests. Defaults empty but gets populated by a number of enviroment variables:</p>
<dl class="rdoc-list note-list"><dt>N (-n flag) 
<dd>
<p>a string or regexp of tests to run.</p>
</dd><dt>X (-e flag) 
<dd>
<p>a string or regexp of tests to exclude.</p>
</dd><dt>A (arg)     
<dd>
<p>quick way to inject an arbitrary argument (eg A=–help).</p>
</dd></dl>

<p>See <a href="TestTask.html#method-i-process_env"><code>process_env</code></a></p>
              </div>
            </div>
          <div id="attribute-i-framework" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">framework</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              <p>The code to load the framework. Defaults to requiring minitest/autorun…</p>

<p>Why do I have this as an option?</p>
              </div>
            </div>
          <div id="attribute-i-libs" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">libs</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              <p>Extra library directories to include. Defaults to %w[lib test .]. Also uses $MT_LIB_EXTRAS allowing you to dynamically override/inject directories for custom runs.</p>
              </div>
            </div>
          <div id="attribute-i-name" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">name</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              <p>The name of the task and base name for the other tasks generated.</p>
              </div>
            </div>
          <div id="attribute-i-test_globs" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">test_globs</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              <p>File globs to find test files. Defaults to something sensible to find test files under the test directory.</p>
              </div>
            </div>
          <div id="attribute-i-test_prelude" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">test_prelude</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              <p>Optional: Additional ruby to run before the test framework is loaded.</p>
              </div>
            </div>
          <div id="attribute-i-verbose" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">verbose</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              <p>Print out commands as they run. Defaults to Rake’s <code>trace</code> (-t flag) option.</p>
              </div>
            </div>
          <div id="attribute-i-warning" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">warning</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              <p>Turn on ruby warnings (-w flag). Defaults to true.</p>
              </div>
            </div>
            </section>


                <section id="public-class-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Public Class Methods</h3>
                </header>

                  <div id="method-c-create" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">create</span><span
                                class="method-args">(name = :test, &amp;block)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Create several test-oriented tasks under <code>name</code>. Takes an optional block to customize variables.</p>

                              <div class="method-source-code" id="create-source">
            <pre><span class="ruby-comment"># File minitest-5.20.0/lib/minitest/test_task.rb, line 44</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">create</span> <span class="ruby-identifier">name</span> = <span class="ruby-value">:test</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
  <span class="ruby-identifier">task</span> = <span class="ruby-identifier">new</span> <span class="ruby-identifier">name</span>
  <span class="ruby-identifier">task</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">block</span>
  <span class="ruby-identifier">task</span>.<span class="ruby-identifier">process_env</span>
  <span class="ruby-identifier">task</span>.<span class="ruby-identifier">define</span>
  <span class="ruby-identifier">task</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

                <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Public Instance Methods</h3>
                </header>

                  <div id="method-i-make_test_cmd" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">make_test_cmd</span><span
                                class="method-args">(globs = test_globs)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Generate the test command-line.</p>

                              <div class="method-source-code" id="make_test_cmd-source">
            <pre><span class="ruby-comment"># File minitest-5.20.0/lib/minitest/test_task.rb, line 253</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">make_test_cmd</span> <span class="ruby-identifier">globs</span> = <span class="ruby-identifier">test_globs</span>
  <span class="ruby-identifier">tests</span> = []
  <span class="ruby-identifier">tests</span>.<span class="ruby-identifier">concat</span> <span class="ruby-constant">Dir</span>[<span class="ruby-operator">*</span><span class="ruby-identifier">globs</span>].<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">shuffle</span> <span class="ruby-comment"># TODO: SEED -&gt; srand first?</span>
  <span class="ruby-identifier">tests</span>.<span class="ruby-identifier">map!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-node">%(require &quot;#{f}&quot;)</span> }

  <span class="ruby-identifier">runner</span> = []
  <span class="ruby-identifier">runner</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">test_prelude</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">test_prelude</span>
  <span class="ruby-identifier">runner</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">framework</span>
  <span class="ruby-identifier">runner</span>.<span class="ruby-identifier">concat</span> <span class="ruby-identifier">tests</span>
  <span class="ruby-identifier">runner</span> = <span class="ruby-identifier">runner</span>.<span class="ruby-identifier">join</span> <span class="ruby-string">&quot;; &quot;</span>

  <span class="ruby-identifier">args</span>  = []
  <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;-I#{libs.join(File::PATH_SEPARATOR)}&quot;</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">libs</span>.<span class="ruby-identifier">empty?</span>
  <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;-w&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">warning</span>
  <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&#39;-e&#39;</span>
  <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&#39;#{runner}&#39;&quot;</span>
  <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&#39;--&#39;</span>
  <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">extra_args</span>.<span class="ruby-identifier">map</span>(<span class="ruby-operator">&amp;</span><span class="ruby-value">:shellescape</span>)

  <span class="ruby-identifier">args</span>.<span class="ruby-identifier">join</span> <span class="ruby-string">&quot; &quot;</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-process_env" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">process_env</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Extract variables from the environment and convert them to command line arguments. See <a href="TestTask.html#attribute-i-extra_args"><code>extra_args</code></a>.</p>

<p>Environment Variables:</p>
<dl class="rdoc-list note-list"><dt>MT_LIB_EXTRAS 
<dd>
<p>Extra libs to dynamically override/inject for custom runs.</p>
</dd><dt>N             
<dd>
<p>Tests to run (string or /regexp/).</p>
</dd><dt>X             
<dd>
<p>Tests to exclude (string or /regexp/).</p>
</dd><dt>A             
<dd>
<p>Any extra arguments. Honors shell quoting.</p>
</dd></dl>

<p>Deprecated:</p>
<dl class="rdoc-list note-list"><dt>TESTOPTS      
<dd>
<p>For argument passing, use <code>A</code>.</p>
</dd><dt>N             
<dd>
<p>For parallel testing, use <code>MT_CPU</code>.</p>
</dd><dt>FILTER        
<dd>
<p>Same as <code>TESTOPTS</code>.</p>
</dd></dl>

                              <div class="method-source-code" id="process_env-source">
            <pre><span class="ruby-comment"># File minitest-5.20.0/lib/minitest/test_task.rb, line 138</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">process_env</span>
  <span class="ruby-identifier">warn</span> <span class="ruby-string">&quot;TESTOPTS is deprecated in Minitest::TestTask. Use A instead&quot;</span> <span class="ruby-keyword">if</span>
    <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;TESTOPTS&quot;</span>]
  <span class="ruby-identifier">warn</span> <span class="ruby-string">&quot;FILTER is deprecated in Minitest::TestTask. Use A instead&quot;</span> <span class="ruby-keyword">if</span>
    <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;FILTER&quot;</span>]
  <span class="ruby-identifier">warn</span> <span class="ruby-string">&quot;N is deprecated in Minitest::TestTask. Use MT_CPU instead&quot;</span> <span class="ruby-keyword">if</span>
    <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;N&quot;</span>] <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;N&quot;</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>

  <span class="ruby-identifier">lib_extras</span> = (<span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;MT_LIB_EXTRAS&quot;</span>] <span class="ruby-operator">||</span> <span class="ruby-string">&quot;&quot;</span>).<span class="ruby-identifier">split</span> <span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">PATH_SEPARATOR</span>
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">libs</span>[<span class="ruby-value">0</span>,<span class="ruby-value">0</span>] = <span class="ruby-identifier">lib_extras</span>

  <span class="ruby-identifier">extra_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;-n&quot;</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;N&quot;</span>]                      <span class="ruby-keyword">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;N&quot;</span>]
  <span class="ruby-identifier">extra_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;-e&quot;</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;X&quot;</span>]                      <span class="ruby-keyword">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;X&quot;</span>]
  <span class="ruby-identifier">extra_args</span>.<span class="ruby-identifier">concat</span> <span class="ruby-constant">Shellwords</span>.<span class="ruby-identifier">split</span>(<span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;TESTOPTS&quot;</span>]) <span class="ruby-keyword">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;TESTOPTS&quot;</span>]
  <span class="ruby-identifier">extra_args</span>.<span class="ruby-identifier">concat</span> <span class="ruby-constant">Shellwords</span>.<span class="ruby-identifier">split</span>(<span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;FILTER&quot;</span>])   <span class="ruby-keyword">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;FILTER&quot;</span>]
  <span class="ruby-identifier">extra_args</span>.<span class="ruby-identifier">concat</span> <span class="ruby-constant">Shellwords</span>.<span class="ruby-identifier">split</span>(<span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;A&quot;</span>])        <span class="ruby-keyword">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;A&quot;</span>]

  <span class="ruby-constant">ENV</span>.<span class="ruby-identifier">delete</span> <span class="ruby-string">&quot;N&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;N&quot;</span>]

  <span class="ruby-comment"># TODO? RUBY_DEBUG = ENV[&quot;RUBY_DEBUG&quot;]</span>
  <span class="ruby-comment"># TODO? ENV[&quot;RUBY_FLAGS&quot;]</span>

  <span class="ruby-identifier">extra_args</span>.<span class="ruby-identifier">compact!</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

              </section>
              </main>



            </div>  <!--  class='wrapper hdiv' -->


<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is a service of <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>, purveyors of fine <a href='https://jamesbritt.bandcamp.com/'>dance noise</a></p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

